#include "TopMarkType.h"

TopMarkType
top_mark_fetch_type (ObjectString* str_top_mark)
{
        if (object_string_compare_with_charset (str_top_mark,
                                                "[School Time Table]")) {
                return TOP_MARK_TYPE_SCHOOL;
        } else if (object_string_compare_with_charset (str_top_mark,
                                                       "[Student Info]")) {
                return TOP_MARK_TYPE_STUDENT;
        } else if (object_string_compare_with_charset (str_top_mark,
                                                       "[Course Info]")) {
                return TOP_MARK_TYPE_COURSE;
        } else {
                return TOP_MARK_TYPE_OTHER;
        }
}
